using System.Collections.Generic;

namespace RebelStar.Engine.Units.Equipments
{
    public class Equipment
    {
        readonly string name;
        readonly List<Action> actions;

        public Equipment(string name)
        {
            this.name = name;
            this.actions = new List<Action>();
        }

        public string Name
        {
            get { return name; }
        }
        public IList<Action> Actions
        {
            get { return actions; }
        }
        public Action DefaultAction
        {
            get
            {
                if (actions.Count > 0)
                    return actions[0];
                else
                    return null;
            }
        }

        public void DoAction(Action action)
        {}
    }
}